/**
 * 问卷调查相关API
 */

import axios from 'axios'

const baseurl = '/giraffe/survey'

export const addSurvey = (data) => axios.post(
  `${baseurl}/addSurvey`,
  data,
  {headers: {'Content-Type': 'application/json'}}
).then(
  (res) => {
    return res
  }
)
export const findCondition = (data) => axios.post(
  `${baseurl}/findCondition`,
  data,
  {headers: {'Content-Type': 'application/json'}}
).then(
  (res) => {
    return res
  }
)
export const findMySurvey = (data) => axios.post(
  `${baseurl}/findMySurvey`,
  data,
  {headers: {'Content-Type': 'application/json'}}
).then(
  (res) => {
    return res
  }
)

export const findSurvey = (data) => axios.post(
  `${baseurl}/findSurvey`,
  data,
  {headers: {'Content-Type': 'application/json'}}
).then(
  (res) => {
    return res
  }
)

export const writeSurvey = (data) => axios.post(
  `${baseurl}/writeSurvey`,
  data,
  {headers: {'Content-Type': 'application/json'}}
).then(
  (res) => {
    return res
  }
)

export const findMyCreateSurvey = (data) => axios.post(
  `${baseurl}/findMyCreateSurvey`,
  data,
  {headers: {'Content-Type': 'application/json'}}
).then(
  (res) => {
    return res
  }
)

export const findMyTask = (data) => axios.post(
  `${baseurl}/findMyTask`,
  data,
  {headers: {'Content-Type': 'application/json'}}
).then(
  (res) => {
    return res
  }
)
